package com.wonders.framework.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.wonders.framework.web.context.GlobalContext;

/**
 * 全局servlet上下文监听器
 * 
 * @author WuBin
 * 
 */
public class GlobalServletContexListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {
	}

	public void contextInitialized(ServletContextEvent arg0) {
		GlobalContext.setServletContext(arg0.getServletContext());
	}

}
